import XLSX from "xlsx";
export default {
    exportExcel(json,name='data'){
        console.log(json)
        let wb = XLSX.utils.book_new()
        let ws = XLSX.utils.aoa_to_sheet(json);
        XLSX.utils.book_append_sheet(wb,ws,"sheet1")
        XLSX.writeFile(wb,name)
    }
}